<?php
Doo::loadCore('db/DooModel');

class FrbFlatPicturesBase extends DooModel
{

    /**
     * @var int Max length is 11.
     */
    public $cha_id;

    /**
     * @var varchar Max length is 254.
     */
    public $cha_pic;

    public $_table = 'frbFlat_pictures';
    public $_primarykey = 'cha_pic';
    public $_fields = array('cha_id','cha_pic');

    public function getVRules() {
        return array(
                'cha_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'notnull' ),
                ),

                'cha_pic' => array(
                        array( 'maxlength', 254 ),
                        array( 'notnull' ),
                )
            );
    }

}